<?php


namespace app\common\validate;


use think\Validate;

class Banner extends Validate
{
    //公共验证规则
    protected $rule = [
        'banner_images|图片' => 'require|unique:banner',
        'banner_sort|所属栏目' => 'require'
    ];

    protected $message = [
        'images.require' => '请先添加图片'
    ];
    //图片添加验证场景
   /* public function sceneAdd()
    {
        return $this->only(['images']);
    }*/
}